Don't add executables to cmake exports
authorGert Wollny <gw.fossdev@gmail.com>
Wed, 11 Feb 2026 17:32:36 +0000 (18:32 +0100)
committerÉtienne Mollier <emollier@debian.org>
Wed, 11 Feb 2026 17:32:36 +0000 (18:32 +0100)
Bug-Debian: https://bugs.debian.org/803304
Forwarded: not-needed

CMake exports are used by other packages that compile
and link against dcmtk. Because Debian moves some of
these executables and also dosn't install the test
executables, this import may fail leading to failure
to configure the according package.

Gbp-Pq: Name 07_dont_export_all_executables.patch

CMake/dcmtkMacros.cmake

index 4ba68453b3c20acdf6598c0fd7839c82ffab7ae1..94ffef9e5d5e3ebc030bffc90e910eb5cd00c8d2 100644 (file)
@@ -62,11 +62,11 @@ macro(DCMTK_ADD_EXECUTABLE PROGRAM)
         endif()
 
         # Collect executable as part of global DCMTK_EXECUTABLE_TARGETS property
-        set_property(GLOBAL APPEND PROPERTY DCMTK_EXECUTABLE_TARGETS ${PROGRAM})
+        #set_property(GLOBAL APPEND PROPERTY DCMTK_EXECUTABLE_TARGETS ${PROGRAM})
 
         # declare installation files, also export DCMTKTargets.cmake
         install(TARGETS ${PROGRAM}
-                EXPORT DCMTKTargets
+        #        EXPORT DCMTKTargets
                 COMPONENT bin
                 DESTINATION ${CMAKE_INSTALL_BINDIR})
     endif()